import request from '@/utils/request'

// 查询个人用电信息列表
export function listPersonalElectricityUsage(query) {
  return request({
    url: '/PersonalElectricityUsage/PersonalElectricityUsage/list',
    method: 'get',
    params: query
  })
}

// 查询个人用电信息详细
export function getPersonalElectricityUsage(id) {
  return request({
    url: '/PersonalElectricityUsage/PersonalElectricityUsage/' + id,
    method: 'get'
  })
}

// 新增个人用电信息
export function addPersonalElectricityUsage(data) {
  return request({
    url: '/PersonalElectricityUsage/PersonalElectricityUsage',
    method: 'post',
    data: data
  })
}

// 修改个人用电信息
export function updatePersonalElectricityUsage(data) {
  return request({
    url: '/PersonalElectricityUsage/PersonalElectricityUsage',
    method: 'put',
    data: data
  })
}

// 删除个人用电信息
export function delPersonalElectricityUsage(id) {
  return request({
    url: '/PersonalElectricityUsage/PersonalElectricityUsage/' + id,
    method: 'delete'
  })
}
